<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:simpleGauges="clr-namespace:drcoderz.com.gauges.simple"
    xmlns:complexGauges="clr-namespace:drcoderz.com.gauges.complex">


    <Style TargetType="simpleGauges:SimpleGauge">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="simpleGauges:SimpleGauge">
                    <Viewbox Stretch="Uniform">
                        <Grid x:Name="MainTemperature" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Width="280" Height="280" Stroke="Transparent">
                                <Ellipse.Fill>
                                    <LinearGradientBrush StartPoint="1,0" EndPoint="1,1">
                                        <GradientStop Color="White" Offset="0" />
                                        <GradientStop Color="LightGray" Offset="0.08" />
                                        <GradientStop Color="LightGray" Offset="0.2" />
                                        <GradientStop Color="Black" Offset="0.2" />
                                        <GradientStop Color="Gray" Offset="0.6" />
                                        <GradientStop Color="White" Offset="0.8" />
                                        <GradientStop Color="DimGray" Offset="1" />
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                                <Ellipse.Effect>
                                    <DropShadowEffect BlurRadius="25" Color="Black" Direction="0" ShadowDepth="0" />
                                </Ellipse.Effect>
                            </Ellipse>
                            <Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Width="260" Height="260" StrokeThickness="4">
                                <Ellipse.Fill>
                                    <LinearGradientBrush StartPoint="1,0" EndPoint="1,1">
                                        <GradientStop Color="Black" Offset="0" />
                                        <GradientStop Color="Black" Offset="0.3" />
                                        <GradientStop Color="Gray" Offset="1" />
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                                <Ellipse.Stroke>
                                    <LinearGradientBrush StartPoint="1,0" EndPoint="1,1">
                                        <GradientStop Color="Silver" Offset="0" />
                                        <GradientStop Color="Gray" Offset="0.8" />
                                        <GradientStop Color="DarkGray" Offset="1" />
                                    </LinearGradientBrush>
                                </Ellipse.Stroke>
                            </Ellipse>

                            <Ellipse x:Name="InnerShadow" HorizontalAlignment="Center" VerticalAlignment="Center" Width="255" Height="255" StrokeThickness="4">
                                <Ellipse.Fill>
                                    <RadialGradientBrush >
                                        <GradientStop Color="#00000000" Offset="0.6"/>
                                        <GradientStop Color="Black" Offset="0.9"/>
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>

                            <Grid x:Name="blueTheme" Visibility="Collapsed">
                                <Ellipse x:Name="BlueOne" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="45" StrokeDashArray="6.3 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="120" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8">
                                            <GradientStop Color="White" Offset="0" />
                                            <GradientStop Color="#FF87c7f4" Offset="0.5" />
                                            <GradientStop Color="#FF87c7f4" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="BlueTwo" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="50" StrokeDashArray="5.3 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="200" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.7">
                                            <GradientStop Color="#FF1f7bbc" Offset="0" />
                                            <GradientStop Color="#FF1f7bbc" Offset="0.1" />
                                            <GradientStop Color="Black" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="BlueThree" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="40" StrokeDashArray="6 23.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="155" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.5" StartPoint="0,1">
                                            <GradientStop Color="#FF50a7e3" Offset="0" />
                                            <GradientStop Color="#FF3babfa" Offset="0.1" />
                                            <GradientStop Color="#FF0e5384" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="BlueFour" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="55" StrokeDashArray="3 12.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="306" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.3">
                                            <GradientStop Color="#FF3babfa" Offset="0" />
                                            <GradientStop Color="#FF3babfa" Offset="0.5" />
                                            <GradientStop Color="#FF3babfa" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>
                            </Grid>
                            
                            <Grid x:Name="tempTheme" Visibility="Collapsed">
                                <Ellipse x:Name="tempGreen" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="45" StrokeDashArray="6 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="120" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8">
                                            <GradientStop Color="White" Offset="0" />
                                            <GradientStop Color="Green" Offset="0.5" />
                                            <GradientStop Color="Green" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="tempYellow" Opacity="0.8" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="50" StrokeDashArray="6 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="180" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8">
                                            <GradientStop Color="Orange" Offset="0" />
                                            <GradientStop Color="Orange" Offset="0.1" />
                                            <GradientStop Color="Yellow" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="tempOrange" Opacity="0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="40" StrokeDashArray="5.1 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="150" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8" StartPoint="0,1">
                                            <GradientStop Color="Orange" Offset="0" />
                                            <GradientStop Color="Orange" Offset="0.1" />
                                            <GradientStop Color="Yellow" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>

                                <Ellipse x:Name="tempRed" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="55" StrokeDashArray="3 12.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="306" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8">
                                            <GradientStop Color="Red" Offset="0" />
                                            <GradientStop Color="Red" Offset="0.5" />
                                            <GradientStop Color="#FFFFE3E3" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>
                            </Grid>
                            
                            <Grid x:Name="customTheme" Visibility="Collapsed">
                                <Ellipse x:Name="anyColor" Stroke="{TemplateBinding CustomColor}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" StrokeThickness="20" StrokeDashArray="26.2 22.38" StrokeEndLineCap="Round" >
                                    <Ellipse.RenderTransform>
                                        <RotateTransform Angle="120" CenterX="110" CenterY="110" />
                                    </Ellipse.RenderTransform>
                                    <!--<Ellipse.Stroke>
                                        <LinearGradientBrush Opacity="0.8" StartPoint="1,1">
                                            <GradientStop Color="{Binding }" Offset="0" />
                                            <GradientStop Color="#FF1D9FCE" Offset="0.5" />
                                            <GradientStop Color="#FF1D9FCE" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>-->
                                </Ellipse>
                            </Grid>
                            
                            <Ellipse x:Name="bigLines" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" Stroke="{TemplateBinding LinesBrush}" StrokeThickness="10" StrokeDashArray="0.1 5.393" StrokeEndLineCap="Round" />
                            <Ellipse x:Name="smallLines" HorizontalAlignment="Center" VerticalAlignment="Center" Width="220" Height="220" Stroke="{TemplateBinding LinesBrush}" StrokeThickness="10" StrokeDashArray="0.05 0.25" StrokeEndLineCap="Round" />
                            <Ellipse x:Name="smallCircle" HorizontalAlignment="Center" VerticalAlignment="Center" Width="90" Height="90" Stroke="{TemplateBinding LinesBrush}" StrokeThickness="10" StrokeDashArray="0.05 0.25" StrokeEndLineCap="Round" />

                            <Canvas HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="200">
                                <TextBlock Text="40" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="51" Canvas.Top="17" />
                                <TextBlock Text="60" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="138" Canvas.Top="15" />
                                <TextBlock Text="30" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="18" Canvas.Top="52" />
                                <TextBlock Text="20" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="9" Canvas.Top="93" />
                                <TextBlock Text="10" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="22" Canvas.Top="136" />
                                <TextBlock Text="0" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="54" Canvas.Top="167" />
                                <TextBlock Text="70" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="171" Canvas.Top="48" />
                                <TextBlock Text="80" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="183" Canvas.Top="92" />
                                <TextBlock Text="90" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="171" Canvas.Top="138" />
                                <TextBlock Text="100" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Canvas.Left="131" Canvas.Top="167" />
                                <TextBlock Canvas.Left="92" Canvas.Top="4" FontSize="10" Foreground="{TemplateBinding NumbersBrush}" Text="50" />
                            </Canvas>

                            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,70" FontSize="9" Foreground="{TemplateBinding NumbersBrush}" Text="{TemplateBinding GaugeLabel}" />
                            <Grid>
                                <Grid.RenderTransform>
                                    <RotateTransform x:Name="gaugeRotation" CenterX="140" CenterY="140"  />
                                </Grid.RenderTransform>
                                <Path Width="20" StrokeThickness="1.5" Height="145" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,30,0,0" StrokeEndLineCap="Round" StrokeLineJoin="Round" Data="M103.2548,214 L93.333336,383.33301 L112.38036,383.26743 z" Stretch="Fill" UseLayoutRounding="False">
                                    <Path.Fill>
                                        <LinearGradientBrush StartPoint="1,0">
                                            <GradientStop Offset="0" Color="Black"/>
                                            <GradientStop Offset="1" Color="Red"/>
                                        </LinearGradientBrush>
                                    </Path.Fill>
                                    
                                    <Path.Effect>
                                        <DropShadowEffect BlurRadius="15" Color="Black" Direction="0" ShadowDepth="0" Opacity="0.5" />
                                    </Path.Effect>
                                </Path>
                                <Ellipse Fill="#FF919191" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" StrokeThickness="2" Width="30" Height="30" >
                                    <Ellipse.Effect>
                                        <DropShadowEffect BlurRadius="15" Color="Black" Direction="0" ShadowDepth="0" />
                                    </Ellipse.Effect>
                                    <Ellipse.Stroke>
                                        <LinearGradientBrush StartPoint="1,0" EndPoint="1,1">
                                            <GradientStop Color="White" Offset="0" />
                                            <GradientStop Color="Gray" Offset="0.2" />
                                            <GradientStop Color="Gray" Offset="0.6" />
                                            <GradientStop Color="White" Offset="1" />
                                        </LinearGradientBrush>
                                    </Ellipse.Stroke>
                                </Ellipse>
                            </Grid>

                            <Ellipse x:Name="shine" Width="240" Height="240" Opacity="0.5">
                                <Ellipse.Fill>
                                    <LinearGradientBrush StartPoint="1,0">
                                        <GradientStop Offset="0" Color="#FFFFFFFF"/>
                                        <GradientStop Offset="0.8" Color="Transparent"/>
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                                <Ellipse.Clip>
                                    <EllipseGeometry RadiusX="190" RadiusY="160" />
                                </Ellipse.Clip>
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="16" CenterX="125" CenterY="125"/>
                                </Ellipse.RenderTransform>
                            </Ellipse>
                        </Grid>
                    </Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style TargetType="complexGauges:ComplexGauge">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="complexGauges:ComplexGauge">
                    <Viewbox Stretch="Uniform">
                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Ellipse Width="300" Height="300" HorizontalAlignment="Center" VerticalAlignment="Center" Fill="#FF000000" >
                                <Ellipse.Effect>
                                    <DropShadowEffect BlurRadius="6" Direction="270" Color="Black" Opacity="0.9" ShadowDepth="4" />
                                </Ellipse.Effect>
                            </Ellipse>
                            <Ellipse Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                <Ellipse.Fill>
                                    <LinearGradientBrush>
                                        <GradientStop Color="LightGray" Offset="0" />
                                        <GradientStop Color="White" Offset="0.3" />
                                        <GradientStop Color="White" Offset="0.5" />
                                        <GradientStop Color="#FFADADAD" Offset="0.5" />
                                        <GradientStop Color="White" Offset="1" />
                                        <GradientStop Color="#FF383838" Offset="1" />
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                            <Ellipse Opacity="0.8" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="80" StrokeDashArray="1.5 20" >
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="290" CenterX="135" CenterY="135"/>
                                </Ellipse.RenderTransform>
                                <Ellipse.Stroke>
                                    <LinearGradientBrush StartPoint="1,0">
                                        <GradientStop Color="#7FFF3B00" Offset="0"/>
                                        <GradientStop Color="#FFFF3B00" Offset="0.5"/>
                                        <GradientStop Color="#FF833522" Offset="1"/>
                                    </LinearGradientBrush>
                                </Ellipse.Stroke>
                            </Ellipse>


                            <Ellipse x:Name="arch" Width="250" Height="250" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="{TemplateBinding ThinArchColor}" StrokeThickness="15" StrokeDashArray="20 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="144" CenterX="125" CenterY="125" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <!--<Ellipse x:Name="archFill" Margin="0,23,17,15" Width="240" Height="240" HorizontalAlignment="Center" VerticalAlignment="Center" Fill="White" StrokeDashArray="20 50" />-->

                            <Ellipse x:Name="smallWhiteLines90" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="90" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines120" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="120" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines150" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="150" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines180" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="180" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines210" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="210" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines240" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="240" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines270" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="270" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines300" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="300" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines330" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="330" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallWhiteLines360" Width="290" Height="290" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FFFFFFFF" StrokeThickness="9" StrokeDashArray="0.4 200">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="360" CenterX="145" CenterY="145" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="smallBlackLines" Width="250" Height="250" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Black" Opacity="0.3" StrokeThickness="15" StrokeDashArray="0.1 0.7"/>

                            <Ellipse x:Name="bigLines90" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="90" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines180" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="180" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines120" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="120" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines150" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="150" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines270" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="270" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines240" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="240" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines210" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="210" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines0" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="0" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines330" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="330" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>

                            <Ellipse x:Name="bigLines300" Width="270" Height="270" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#FF000000" StrokeThickness="25" StrokeDashArray="0.15 50">
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="300" CenterX="135" CenterY="135" />
                                </Ellipse.RenderTransform>
                            </Ellipse>


                            <Ellipse Width="150" Height="150" Fill="#FF000000" Margin="70" >
                                <Ellipse.Effect>
                                    <DropShadowEffect BlurRadius="6" Direction="270" Color="Black" Opacity="0.9" ShadowDepth="4" />
                                </Ellipse.Effect>
                            </Ellipse>

                            <Canvas>
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="0" Canvas.Top="240" Canvas.Left="145" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="100" Canvas.Top="225" Canvas.Left="85" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="200" Canvas.Top="190" Canvas.Left="55" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="300" Canvas.Top="140" Canvas.Left="42" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="400" Canvas.Top="90" Canvas.Left="55" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="500" Canvas.Top="55" Canvas.Left="92" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="600" Canvas.Top="43" Canvas.Left="139" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="700" Canvas.Top="54" Canvas.Left="180" />
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="800" Canvas.Top="90" Canvas.Left="219"/>
                                <TextBlock FontSize="15" FontWeight="Bold" FontFamily="Arial" Text="900" Canvas.Top="143" Canvas.Left="232"/>
                            </Canvas>

                            <TextBlock Text="{TemplateBinding GaugeLabel}" TextAlignment="Center" FontSize="40" FontFamily="Arial" Margin="0,0,0,85" Foreground="{TemplateBinding GaugeLabelColor}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            <TextBlock Text="{TemplateBinding UOM}" FontSize="11" FontFamily="Arial" Margin="0,0,0,35" Foreground="#FFFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            <TextBlock Text="{TemplateBinding SubLabel}" FontSize="11" FontFamily="Arial" Margin="0,70,0,0" Foreground="#FFFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Center" />
                            
                            <Grid RenderTransformOrigin="0.5,0.5">
                                <Grid Height="300" Width="300">
                                    <Grid.RenderTransform>
                                        <RotateTransform Angle="180" CenterX="150.5" CenterY="150.5" />
                                    </Grid.RenderTransform>
                                    <Ellipse Fill="Gray" Height="25" Width="25" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                    <Path Fill="{TemplateBinding HandColor}" Margin="0,0,0,100" Height="140" Width="11" Data="M6.0012021,7.2486291 C6.0012021,7.2486291 0.43934873,149.43599 0.439006,149.4361 C0.43950546,149.62297 0.15818301,149.49989 6.0006895,149.4985 C12.001635,149.49707 11.500175,149.56097 11.500175,149.56097 z" StrokeStartLineCap="Round" Stretch="Fill" StrokeEndLineCap="Round" Stroke="{TemplateBinding HandColor}" StrokeThickness="3">
                                        <Path.Effect>
                                            <DropShadowEffect Opacity="0.5" Color="Black" ShadowDepth="0" Direction="10" BlurRadius="10"  />
                                        </Path.Effect>
                                    </Path>
                                </Grid>
                                <Grid.RenderTransform>
                                    <RotateTransform x:Name="gaugeRotation" />
                                </Grid.RenderTransform>
                            </Grid>
                            
                            <Ellipse x:Name="shine" Width="300" Height="300" Opacity="0.5">
                                <Ellipse.Fill>
                                    <LinearGradientBrush StartPoint="1,0">
                                        <GradientStop Offset="0" Color="#FFFFFFFF"/>
                                        <GradientStop Offset="0.8" Color="Transparent"/>
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                                <Ellipse.Clip>
                                    <EllipseGeometry RadiusX="230" RadiusY="220" />
                                </Ellipse.Clip>
                                <Ellipse.RenderTransform>
                                    <RotateTransform Angle="16" CenterX="150" CenterY="150"/>
                                </Ellipse.RenderTransform>
                            </Ellipse>

                        </Grid>
                    </Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
